﻿using Core.Infrastructures.Cores.Injections.Dependencies;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Text;

namespace Core.Repositories.Menu.Entities
{
    [SugarTable("Menu")]
    public class MenuEntity : IEntity
    {
        public int Id { get; set; }
        public string Name { get; set; }
        public string UniqueId { get; set; }
        public string Describe { get; set; }
        public bool IsActive { get; set; }
        public string Link { get; set; }
        public int ParentId { get; set; }
        public int Seq { get; set; }
        public DateTime CreateTime { get; set; }
        public string CreateBy { get; set; }
        public bool IsDel { get; set; } = false;

        [SugarColumn(IsIgnore = true)]
        public MenuEntity Parent { get; set; }
    }
}
